<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%-- 设置meta
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/meta.jsp"%>
<title>三方28数据管理</title>

<%-- 导入样式
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<c:set var="linkForm" value="form" />
<%@ include file="/WEB-INF/template/include/link.jsp"%>
<link rel="stylesheet" href="${res }/default/css/content.css" />

<%-- 导入脚本
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<c:set var="scriptForm" value="form" />
<%@ include file="/WEB-INF/template/include/script.jsp"%>
<script>
	jQuery(function() {
		$("#J_form").validate(extention.config["jquery.validate"]);

		var project = new Select({
			element : "[name='bettingProjectId']",
			value : "${bettingProjectId}",
			url : "${ctx}/btn/betting/project/options.json"
		});
		project.empty();
		project.load();

		var mode = new Select({
			element : "[name='modeId']",
			value : "${modeId}",
			url : "${ctx}/pc/mode/options.json",
			select:function(value){
				winMode.select(value);
				loseMode.select(value);
			}
		});
		mode.empty();
		mode.load();

		var winMode = new Select({
			element : "[name='winModeId']",
			value : "${winModeId}",
			url : "${ctx}/pc/mode/options.json"
		});
		winMode.empty();
		winMode.load();

		var loseMode = new Select({
			element : "[name='loseModeId']",
			value : "${loseModeId}",
			url : "${ctx}/pc/mode/options.json"
		});
		loseMode.empty();
		loseMode.load();
	});
</script>

<%-- 页眉
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<c:set var="mode" value="original" />
<%@ include file="/WEB-INF/template/include/header.jsp"%>
<div style="width: 400px; margin: auto; padding: 0px;">
	<p class="text-center xl-copyright">Whisper Studio Make Life
		Better.</p>
	<form id="J_form" class="form-horizontal"
		action="${ctx }/btn/betting/mode/create.json" method="post">
		<div class="well">
			<h2 class="xl-form-title">创建投注模式</h2>
			<div class="form-group">
				<label class="control-label col-xs-3">投注项目</label>
				<div class="col-xs-9">
					<select class="form-control  required" name="bettingProjectId">
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-xs-3">是否激活</label>
				<div class="col-xs-9">
					<label class="radio-inline"> <input type="radio"
						name="isActivate" checked="checked" value="true"> 是
					</label> <label class="radio-inline"> <input type="radio"
						name="isActivate" value="false"> 否
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-xs-3">投注模式</label>
				<div class="col-xs-9">
					<select class="form-control  required" name="modeId">
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-xs-3">赢后使用</label>
				<div class="col-xs-9">
					<select class="form-control  required" name="winModeId">
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-xs-3">输后使用</label>
				<div class="col-xs-9">
					<select class="form-control  required" name="loseModeId">
					</select>
				</div>
			</div>
			<button type="submit" class=" xl-btn-login btn-block ">提交</button>
		</div>
	</form>
	<p class="text-center xl-copyright">2014 &copy; Whisper Development
		Team.</p>
</div>
<c:set var="mode" value="original" />
<%@ include file="/WEB-INF/template/include/footer.jsp"%>
